import request from '@/utils/request'

/**
 * 获取组织架构
 * @param params
 * @returns {AxiosPromise}
 */
export function getDepartment() {
  return request({
    url: '/company/departmant',
  })
}

/**
 * 获取部门负责人数据
 * @param params
 * @returns {AxiosPromise}
 */
export function getManagerList() {
  return request({
    url: '/sys/user/simple',
  })
}

/**
 * 新增组织
 * @param data
 * @returns {AxiosPromise}
 */
export function addDepartment(data) {
  return request({
    method:'post',
    url:'/company/department',
    data
  })

}
